checkout: Provide useful error with checkout -H and incompat mode
authorColin Walters <walters@verbum.org>
Wed, 5 Apr 2017 17:11:34 +0000 (13:11 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 12 Apr 2017 17:06:44 +0000 (17:06 +0000)
commitd3385a3014e173299094133d644763e34e5ecd52
tree61f5ad2180878e788ecb33abfc3651f3d56d07f6
parent6a7ee4860f737a52b2a879ad8690456bbd9440bf
checkout: Provide useful error with checkout -H and incompat mode

Previously we'd assert and dump core if one used `checkout -H` without
`-U` on a bare-user repo, because we'd hit the bare-user symlink case.

Rework the code to handle this, and add tests. I hit this when I was going to
suggest to someone to use `-H` to ensure they were getting hardlinks.

Closes: #779
Approved by: jlebon
src/libostree/ostree-repo-checkout.c
tests/basic-test.sh